<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<c:import url="/head.jsp"></c:import>
<script src="<c:url value='/scripts/jquery-latest.pack.js'/> " type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/scripts/submitcheck.js"></script>
<script type="text/javascript">
function delOpt(id, proCode){
	
	if (confirm("确实要删除？")){
		var options={type:"POST", url:'<%=request.getContextPath()%>/admin/deleteopt?id='+id + '&proCode=' + proCode, 
				dataType:"json", success:localResultResponse};
		$.ajax(options);
	}
}
function localResultResponse(data,status) {
	resultResponse(data,status);
	try{
	if (data.result == 0)
	{
		location.reload();
	}}catch(e){}
}
function show(id, reloadparent){
	parent.openPro(id,reloadparent);
	var url = '<%=request.getContextPath()%>/admin/editProAuditInfo?proCode='+id;
	parent.isShow = reloadparent;
	url = url + "&show=" + parent.isShow;
	location.href=url;
}
</script>
<body leftmargin="0" rightmargin="0" topmargin="0">

 
	<table class="tdata">
	<tr><form method="post" action="<c:url value="/admin/searchProject"/>">
		<td colspan="5"><span></span><label>项目编码:</label><input
			type="text" value="" size="9" name="proCode"><label>项目名称:</label><input
			type="text" value="" size="9" name="keyWord"><input
			value="搜索" class="btn40" style="margin: 0 0 0 5px;" type="submit"></td>
			</form>
	</tr>
	<tr class="tr01">
    	<td align="center" width="5%"><strong>序号</strong></td>
		<td align="center" width="30%"><strong>项目编码</strong></td>
		<td align="center" width="25%"><strong>项目名称</strong></td>
		<td align="center" width="22%"><strong>日期</strong></td>
		<td align="center" width="10%"><strong>操作</strong></td>
  </tr>
   <tbody>
		<c:forEach items="${projectAuditInfos}" var="projectAuditInfo"
			varStatus="status">
			<tr onMouseMove="this.style.backgroundColor='#F1F1F1';"
				onmouseout="this.style.backgroundColor='';">
				<td align="center" style="height:50px">${startPosi-status.index}&nbsp;</td>
				<td align="center" class="hiddentd" nowrap><c:out value="${projectAuditInfo.proCode}" />&nbsp;</td>
				<td class="hiddentd" style="word-break:break-all;width:350px" nowrap><c:out value="${projectAuditInfo.proName}" />&nbsp;</td>
				<td align="center"><c:url value="${projectAuditInfo.proAuditDate}" />&nbsp;</td>
				
				<td align="center" style="word-break:break-all;width:100px">
					<a href="#" onclick="show('${projectAuditInfo.proCode}',1)">修改</a>
					<a href="#" onclick="delOpt('${projectAuditInfo.proAuditID}', '${projectAuditInfo.proCode}' )">删除</a>
					<a href="#" onclick="show('${projectAuditInfo.proCode}',0)">查看</a>
				
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
${page}
</body>
</html>